#include <stdlib.h>
#include <stdio.h>

#include "list.h"
#include "types.h"
#include "sys_main.h"
#include "inter_main.h"
#include "core_main.h"
#include "sys_output.h"

int main(int argc, char* argv[])
{
	//initialization part
	sys_init();
	inter_init();
	core_init();

	//working now
	if( inter_working() < 0 ) goto vsa_exit;

	dump_core_data_to_files();
	
vsa_exit:
	core_exit();
	inter_exit();
	sys_exit();
	printf( "Closing the system now. Thanks for using!\n" );
	return 0;
}

